﻿using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations.Schema;
using Nop.Core.Domain.Coffee;


namespace Nop.Data.Mapping.Coffee
{
    public partial class BeanMap : EntityTypeConfiguration<Bean>
    {
        public BeanMap() 
        {
            this.ToTable("EcrBean");
            this.HasKey(d => d.Id)
                .Property(d => d.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            this.Property(d => d.Name).IsRequired().HasMaxLength(50);
            this.Property(d => d.Description).HasMaxLength(200);
            this.Property(d => d.Elevation);
            this.Property(d => d.Varietal).HasMaxLength(50);
            this.Property(d => d.ReceiptDate);
            this.Property(d => d.ReceiptQuantity);
            this.Property(d => d.CurrentInventory);
            this.Property(d => d.IsActive);

        }
    }
}
